package com.ygqh.baby.mapper;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.po.YgCategory;
import com.ygqh.baby.po.YgCategoryExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface YgCategoryMapper {
    int countByExample(YgCategoryExample example);

    int deleteByExample(YgCategoryExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YgCategory record);

    int insertSelective(YgCategory record);

    List<YgCategory> selectByExample(YgCategoryExample example);

    YgCategory selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") YgCategory record, @Param("example") YgCategoryExample example);

    int updateByExample(@Param("record") YgCategory record, @Param("example") YgCategoryExample example);

    int updateByPrimaryKeySelective(YgCategory record);

    int updateByPrimaryKey(YgCategory record);

    int countSuper(@Param("q") String q);

    List<YgCategory> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

    List<YgCategory> selectParentsByCategoryId(@Param("categoryId") Long categoryId);

    String selectCategoryNameByThirdCategoryId(@Param("categoryId") Long categoryId);
}



